package com.dongdxiang.framework;

import com.dongdxiang.framework.config.AppConfig;
import com.yolanda.nohttp.Logger;
import com.yolanda.nohttp.NoHttp;

/**
 * Created by d_xxiang on 2016/11/23.
 */
public class Application extends android.app.Application{

    private static Application _instance;
    @Override
    public void onCreate() {
        super.onCreate();
        _instance = this;

        NoHttp.initialize(this);

        Logger.setTag("NoHttpSample");
        Logger.setDebug(true);// 开始NoHttp的调试模式, 这样就能看到请求过程和日志

        AppConfig.getInstance();

    }

    public static Application getInstance() {
        return _instance;
    }
}
